package com.lill.system.serivce.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.system.dao.ISysPermLevelDao;
import com.lill.system.model.SysPermLevelEntity;
import com.lill.system.service.ISysPermLevelService;

/**
 * 系统权限级别Service实现类
 *
 * @author lill
 * @date 2020-01-13 16:00:53
 */
@Service("com.lill.system.serivce.impl.SysPermLevelServiceImpl")
public class SysPermLevelServiceImpl implements ISysPermLevelService {
    @Autowired
    private ISysPermLevelDao permLevelDao;

    public SysPermLevelEntity queryObject(String id) {
        return permLevelDao.queryObject(id);
    }

    public List<SysPermLevelEntity> queryList(Map<String, Object> map) {
        return permLevelDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return permLevelDao.queryTotal(map);
    }

    public int save(SysPermLevelEntity permLevel) {
        permLevel.setId(IdUtil.createIdbyUUID());
        return permLevelDao.save(permLevel);
    }

    public int update(SysPermLevelEntity permLevel) {
        return permLevelDao.update(permLevel);
    }

}
